// 积分勋章相关
import request from '../utils/request.js'

// 签到
const sign = () => {
  return request({
    url: '/api/auth/sign',
    method: 'POST'
  })
}

// 前四天签到状态
const hasSign = () => {
  return request({
    url: '/api/auth/sign/hasSign',
    method: 'POST'
  })
}


// 签到列表
const signList = () => {
  return request({
    url: '/api/auth/sign/list',
    method: 'POST'
  })
}

// 获取勋章列表
const medalList = () => {
  return request({
    url: '/api/auth/medal/list',
    method: 'POST'
  })
}

// 积分日志列表
const integerLogList = () => {
  return request({
    url: '/api/auth/integerLog/list',
    method: 'POST'
  })
}


// 点亮勋章
const medalLight = id => {
  return request({
    url: '/api/auth/medal/light/' + id,
    method: 'POST'
  })
}

module.exports = {
  sign,
  hasSign,
  signList,
  medalList,
  integerLogList,
  medalLight
}